<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Result</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.css">
<link href="../style.css" rel="stylesheet" />
</head>
<body onload="PR.prettyPrint()">
<pre class="prettyprint">
<xmp>
#import <Foundation/Foundation>;

@interface Result : NSObject

//错误代码
@property (nonatomic, strong) NSInteger code;
//提示信息
@property (nonatomic, assign) NSString msg;
//数据
@property (nonatomic, strong) LoginResult data;


@end
</xmp>
</pre>

<pre class="prettyprint">
<xmp>
#import <Foundation/Foundation>;

@interface LoginResult : NSObject

//token签名
@property (nonatomic, assign) NSString token;
//登录状态
@property (nonatomic, strong) BOOL canLogin;
//用户信息
@property (nonatomic, strong) User user;


@end
</xmp>
</pre>

<pre class="prettyprint">
<xmp>
#import <Foundation/Foundation>;

@interface User : NSObject

//微信 openId
@property (nonatomic, assign) NSString userId;
//昵称
@property (nonatomic, assign) NSString name;
//头像
@property (nonatomic, assign) NSString photo;
//性别
@property (nonatomic, assign) NSString sex;
//年级
@property (nonatomic, assign) NSString grade;
//学校
@property (nonatomic, assign) NSString college;
//联系方式
@property (nonatomic, assign) NSString contact;


@end
</xmp>
</pre>


<script src="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.js"></script>
</body>
</html>